package com.winning.sx.microframework.service.sysmanage;

import com.winning.dapi.data.entity.DataTable;
import com.winning.sx.microframework.dao.sysmanage.TableManageDao;
import com.winning.sx.microframework.model.exception.CustomException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author wangj_envy
 * @date 2019年6月4日15:08:42
 */
@Service
public class TableManageService {

    @Autowired
    private TableManageDao tableManageDao;

    public DataTable getTableInfoList() throws CustomException {
        return tableManageDao.queryTableInfos();
    }
    public DataTable getTableColumList(Map<String,Object> map) throws CustomException {
        return tableManageDao.queryTableColum(map);
    }

    public DataTable getTableData(Map<String,Object> map) throws CustomException {
        return tableManageDao.queryTableData(map);
    }

    public int saveTableData(Map map){
        return tableManageDao.saveTableData(map);
    }
    public int updateTableData(Map map){
        return tableManageDao.updateTableData(map);
    }

}
